<template>
	<view style='height: 100vh;width: 100%;'>
		<image :src="splash" style='height: 100vh;;width: 100%;' mode=""></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				splash: "/static/images/zhiliao.png",
			}
		},
		methods: {

		},
		//设置页面全屏
		onShow() {
			
			// plus.navigator.setFullscreen(true); //隐藏手机顶部状态栏
			// plus.navigator.hideSystemNavigation(); //隐藏手机底部导航按键
		
		},

		onLoad() {
			setTimeout(() => {
				const token = uni.getStorageSync('token')
				console.log('token ', token);
				if (token) {
					uni.switchTab({
						url: '/pages/home/home'
					})
				} else {
					uni.redirectTo({
						url: '/pages/login/login'
					})
				}
			}, 2000)
			console.log('start >>>>>>>');

		}
	}
</script>

<style>

</style>